package nels4561;

import java.util.Random;

public class Synapse {
	
	private Neuron in;
	private Neuron out;
	private double weight;
	
	public Synapse(Neuron in, Neuron out)
	{
		this.in = in;
		this.out = out;
		weight = new Random().nextDouble();
	}

	public double getInOutput()
	{
		return in.getOutput();
	}
	
	public double getOutOutPut()
	{
		return out.getOutput();
	}
	
	public double getWeight()
	{
		return weight;
	}
	
	public void setWeight(double newWeight)
	{
		weight = newWeight;
	}
	
}
